home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / exeexc.c < prev    next >
C/C++ Source or Header  |  1991-07-05  |  768b  |  28 lines

  1. /*****************************************************************************
  2.  
  3.     ExeExc()
  4.  
  5.     This function executes the ! (exclamation point) command.
  6.  
  7.     !    Define label
  8. *****************************************************************************/
  9.  
  10. #include "zport.h"        /* define portability identifiers */
  11. #include "tecoc.h"        /* define general identifiers */
  12. #include "defext.h"        /* define external global variables */
  13.  
  14. DEFAULT ExeExc()        /* execute a ! (exclamation mark) command */
  15. {
  16.     DBGFEN(1,"ExeExc",NULL);
  17.     if (FindES('!') == FAILURE) {        /* simply skip to next '!' */
  18.         DBGFEX(1,DbgFNm,"FAILURE");
  19.         return FAILURE;
  20.     }
  21.  
  22.     CmdMod = '\0';                /* clear modifiers flags */
  23.     EStTop = EStBot;            /* clear expression stack */
  24.  
  25.     DBGFEX(1,DbgFNm,"SUCCESS");
  26.     return SUCCESS;
  27. }
  28.